package com.tracker
import grails.converters.JSON

class TurController {

	TurService turService
	
		def getlist = {
			println("TurController getList")
			render turService.getlist(params) as JSON
		}
		def getelement = {
			println("TurController getElement")
			render turService.getelement(params) as JSON
		}
		
		def deleteElement = {
			println("TurController getElement")
			render turService.deleteElement(params) as JSON
		}		
		def editElement = {
			println("TurController editElement")
			render turService.editElement(params) as JSON		}
	
		def addElement={
			println("TurController addElement")
			render turService.addElement(params) as JSON
		}
		
  //  def index() { }
}

